<!--{eval $bodyClass ='center-vh overflow-y-auto';}-->
<!--{template lyear:header_simple}-->
<script src="user/scripts/register.js?{VERHASH}"></script>
<!--{eval $loginhash = 'L'.random(4);}-->
<div id="wrapper_div" style="width: 100%;height:100%;  position: absolute; top: 0px; left: 0px; margin: 0px; padding: 0px; overflow: hidden;z-index:0;  font-size: 0px; background:{eval echo $_G['setting']['loginset']['bcolor']?$_G['setting']['loginset']['bcolor']:'#76838f';};"> 
	<!--{if !$_G['setting']['loginset']['bcolor']}-->
	<img src="{eval echo $_G['setting']['loginset']['img']?$_G['setting']['loginset']['img']:'user/login/images/login.jpg';}" name="imgbg" id="imgbg" style="right: 0px; bottom: 0px; top: 0px; left: 0px; z-index:1;margin:0;padding:0;overflow:hidden; position: absolute;width:100%;height:100%" height="100%" width="100%">
	<!--{/if}-->
    <!--{if $_G['setting']['loginset']['url']}-->
    <iframe id="wrapper_frame" name="wrapper_frame" src="$_G['setting']['loginset']['url']" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" allowtransparency="true" style="z-index:2;position:absolute;width:100%;height:100%;background:url(dzz/images/b.gif);"></iframe>
    <!--{/if}-->
</div>
<div class="card card-shadowed p-5 mb-0 mr-2 ml-2" id="register_form" style="width: 420px;">
  <div class="card-body text-center">
		<div class="text-center mb-3">
			<img src="<!--{if $_G['setting']['bbclosed']}-->static/image/common/logo.png<!--{else}-->{eval echo $_G['setting']['sitelogo']?'index.php?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$_G['setting']['sitelogo']):'static/image/common/logo.png';}<!--{/if}-->">
		</div>
		<h2 class="main-title">{lang register_welcome_tip}</h2>
  </div>
  <form action="{MOD_URL}" method="post" class="signin-form loginForm" name="registerform" id="registerform" role="form" enctype="multipart/form-data" onsubmit="check_submit(this);return false">
		<input type="hidden" name="regsubmit" value="yes"/>
    <input type="hidden" name="formhash" value="{FORMHASH}"/>
    <input type="hidden" name="referer" value="$referer"/>
    <input type="hidden" name="handlekey" value="$_GET[handlekey]"/>
		<!--{if $_GET[action] != 'activation'}-->
    <div class="mb-3 has-feedback">
			<span class="mdi mdi-mail" aria-hidden="true"></span>
      <input type="text" class="form-control" id="email" name="email" autocomplete="off" placeholder="{lang register_email_tips}" required/>
      <span id="chk_email" class="help-msg text-danger"></span> 
    </div>
    <div class="mb-3 has-feedback">
			<span class="mdi mdi-account" aria-hidden="true"></span>
      <input type="text" class="form-control" id="username" name="username" autocomplete="off" placeholder="{lang username}" required/>
      <span id="chk_username" class="help-msg text-danger"></span>
    </div>
    <div class="mb-3 has-feedback">
			<span class="mdi mdi-lock" aria-hidden="true"></span>
      <input type="password" class="form-control" id="password" name="password" autocomplete="off" placeholder="{lang register_password_tips}" required/>
      <span id="chk_password" class="help-msg text-danger"></span> 
    </div>
    <div class="mb-3 has-feedback">
			<span class="mdi mdi-lock" aria-hidden="true"></span>
      <input type="password" class="form-control" id="password2" name="password2" autocomplete="off" placeholder="{lang register_repassword_tips}" required>
      <span id="chk_password2" class="help-msg text-danger"></span> 
    </div>
    <!--{loop $_G['cache']['fields_register'] $field}-->
      <!--{if $htmls[$field['fieldid']]}-->
      <div class="mb-3">
        <label for="$field['fieldid']"><!--{if $field['required']}--><span class="mdi mdi-asterisk text-danger" aria-hidden="true"></span><!--{/if}-->$field[title]</label>
        $htmls[$field['fieldid']]
        <!--{if $field['description']}--><span class="help-block"><!--{echo dhtmlspecialchars($field[description])}--></span><!--{/if}-->
      </div>
      <!--{/if}-->
    <!--{/loop}-->
    <!--{/if}-->
    <!--{if $seccodecheck}-->
		<div class="mb-3">
      <!--{template lyear:seccheck}-->
      </div>
    <!--{/if}-->
		<!--{if $bbrules}-->
    <div class="mb-3">
      <div class="form-check">
        <input type="checkbox" class="form-check-input" name="agreebbrule" value="$bbrulehash" id="agreebbrule" checked="checked" />
        <label>{lang agree}</label>
				<a class="forgot" href="javascript:;" onclick="showWindow('bbrule','{MOD_URL}&op=ajax&do=bbrule')">{lang rulemessage}</a> 
      </div>
    </div>
    <!--{/if}-->
    <ul class="nav nav-pills nav-fill">
      <li class="nav-item m-1">
        <a href="user.php?mod=login" class="btn btn-round btn-success w-100">{lang back_login}</a>
      </li>
      <li class="nav-item m-1">
        <button class="btn btn-round btn-primary w-100" type="submit" name="loginsubmit" value="true"><!--{if $_GET[action] == 'activation'}-->{lang activation}<!--{else}-->$_G[setting][reglinkname]<!--{/if}--></button>
      </li>
    </ul>
    <p class="text-danger text-center" id="returnmessage4"></p>
  </form>    
  <p class="text-center text-muted mb-0"><!--{template lyear:copyright}--></p>
</div>
<script type="text/javascript">
	var lastusername = '', lastpassword = '', lastemail = '', lastinvitecode = '', stmp = new Array(), modifypwd = false;
	var ignoreEmail = false;
	var strongpw = new Array();
	<!--{if $_G['setting']['strongpw']}-->
		<!--{loop $_G['setting']['strongpw'] $key $val}-->
			strongpw[$key] = $val;
		<!--{/loop}-->
	<!--{/if}-->
	var pwlength = <!--{if $_G['setting']['pwlength']}-->$_G['setting']['pwlength']<!--{else}-->0<!--{/if}-->;
	
	jQuery(document).ready(function (e) {
	
		addFormEvent('registerform',1);
		if (jQuery('.ie8,.ie9').length) { //ie8模拟placeholder;
			jQuery(':input[placeholder]').each(function () {
				jQuery(this).placeholder();
			});
		}
	});
</script> 
<!--{template lyear:footer}-->